<?php
/**
 * Label.php
 *
 * @author		b.wenneker <b.wenneker@gmail.com>, 2010
 */
class Application_Form_Decorator_Label extends Zend_Form_Decorator_Abstract
{
	public function render ($content)
	{
		
		$element 			= $this->getElement();
		
		if(is_null($element)){
		//	return $content;
		}
		
		if (($element instanceof Application_Form_Element_Label) && ($element->getAllowHtml() == true)) {
			$displayValue 	= $element->getUnfilteredValue();
		} else {
			$displayValue 	= $element->getValue();
		}
		
		return $displayValue;
	}
}